/*!
 * jQuery Validation Plugin 1.11.1
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/
 * http://docs.jquery.com/Plugins/Validation
 *
 * Copyright 2013 Jörn Zaefferer
 * Modified by KeenThemes(refer line #665)
 * Released under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 */
 //自定义validate验证输入的数字小数点位数不能大于两位
 jQuery.validator.addMethod("minNumber",function(value, element){
//     var returnVal = true;
     inputZ=value;
//     console.log(inputZ)
//     var ArrMen= inputZ.split(".");  //截取字符串
//     if(ArrMen.length==2){
//         if(ArrMen[1].length>2){//判断小数点后面的字符串长度
//             returnVal = false;
//             console.log(returnVal);
//             return false;
//         }
//     }else{
//    	 console.log(parseInt(inputZ)===number);
//    	 return parseInt(inputZ)===NaN?false:true;
//     }
//     console.log(/^\d+(\.\d{1,2})?$/.test(inputZ))
//     console.log(returnVal);
     console.log(/^\d+(\.\d{1,2})?$/.test(inputZ));
     return /^\d+(\.\d{1,2})?$/.test(inputZ);
     
//     return returnVal;
 },"小数点后最多为两位"); //验证错误信息